Skip to content

Move examples of rendering elements from CodePen into ./examples #470

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 16, 2018

Conversation

danielsbird
Copy link
Contributor

Move two examples in the Rendering Elements Quickstart article from CodePen to the examples directory. This follows up on the work in #246.

@reactjs-bot
Copy link

reactjs-bot commented Dec 28, 2017

Deploy preview for reactjs ready!

Built with commit 72e7547

https://deploy-preview-470--reactjs.netlify.com

@danielsbird
Copy link
Contributor Author

@bvaughn Can you please take a look at this when you have an opportunity. I think you would be the best person to review since you did #246.

Copy link
Contributor

@bvaughn bvaughn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great!

Interested in using the gatsby-remark-embed-snippet plugin to remove the examples from the markdown too? 😁

@@ -72,7 +72,7 @@ function tick() {
setInterval(tick, 1000);
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can also replace this whole inline example above!

@@ -43,7 +43,7 @@ ReactDOM.render(
);
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can also replace the inline example above by embedding the new snippet too, like we do for the "file" input type. 😁

This is possible using the gatsby-remark-embed-snippet plugin

Check out PR #323 for another example of this.

@danielsbird
Copy link
Contributor Author

Thanks for the suggestions! I will implement them this weekend.

@danielsbird
Copy link
Contributor Author

All done @bvaughn. Can you please take another look?

Copy link
Contributor

@bvaughn bvaughn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dig it~

@bvaughn bvaughn merged commit 8448de7 into reactjs:master Jan 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants